package com.ojoin.trade.supplyloan_core.web.service;

import java.util.List;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlLoanStatDay;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-10-27
 * Time: 下午1:53
 * To change this template use File | Settings | File Templates.
 */
public interface TbSlLoanStatDayService extends BaseService<TbSlLoanStatDay> {

//    /**
//     * 新增一条商户的平台的日统计数据
//     * @param idOfTbMerchantUser
//     * @param platformName
//     * @param idOfPlatformUser
//     * @param todayUnsettleInstoreorder
//     * @param todayUnenterinRefundorder
//     * @param todayUnpaySettleorder
//     * @throws BusinessException
//     */
//    public void addTbSlLoanStatDayInfo(int idOfTbMerchantUser,String platformName,int idOfPlatformUser,String todayUnsettleInstoreorder,String todayUnenterinRefundorder,String todayUnpaySettleorder) throws BusinessException;

    public void insertTbSlLoanStatDayInfo(TbSlLoanStatDay statDayvo)throws BusinessException;
    /**
     *查询商户的当天的日统计数据c
     * @param joinid
     * @return
     * @throws BusinessException
     */
    public TbSlLoanStatDay queryTbSlLoanDayByJoinid(int joinid)throws BusinessException;
    
    /**
     * 删除指定商户指定日期的统计数据
     * @param platformUserId
     * @param statDate
     * @throws BusinessException
     */
    public void deleteTbSlLoanDayByPlatformUserIDAndDate(int platformUserId, String statDate) throws BusinessException;
    /**
     * 查询统计数据
     *
     * @param platformUserId 商户id
     * @param statDate   平台
     * * @param statDate  时间
     * @throws BusinessException 
     */
    public List<TbSlLoanStatDay> queryByPlatformAndMerchantUserIDAndDate(String platformName,String  merchantUserId,String statDate) throws BusinessException;
     
    
}
